Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@changesets/types

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/types

Common types shared between changeset packages

  • 5.2.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created

What is @changesets/types?

@changesets/types is a TypeScript type definitions package for the Changesets tool, which is used to manage versioning and changelogs for monorepos. It provides type definitions for various components and configurations used in the Changesets workflow.

What are @changesets/types's main functionalities?

Changeset type

Defines the structure of a changeset, including an ID, summary, and a list of releases with their respective types.

import { Changeset } from '@changesets/types';

const exampleChangeset: Changeset = {
  id: 'example-id',
  summary: 'This is an example changeset',
  releases: [
    { name: 'package-a', type: 'minor' },
    { name: 'package-b', type: 'patch' }
  ]
};

Release type

Defines the structure of a release, including the package name and the type of release (major, minor, or patch).

import { Release } from '@changesets/types';

const exampleRelease: Release = {
  name: 'package-a',
  type: 'minor'
};

Config type

Defines the structure of the Changesets configuration, including options for changelog generation, commit behavior, access level, and the base branch.

import { Config } from '@changesets/types';

const exampleConfig: Config = {
  changelog: ['@changesets/changelog-github', { repo: 'org/repo' }],
  commit: false,
  access: 'public',
  baseBranch: 'main'
};

Other packages similar to @changesets/types

FAQs

Package last updated on 18 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc